package com.huangyi.portalservice.house.controller;


import com.huangyi.commondomain.domain.R;
import com.huangyi.portalservice.house.domain.vo.HouseDataVO;
import com.huangyi.portalservice.house.service.IHouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 房源页面控制器
 * 
 * <p>提供房源相关的API接口，包括房源详情查询等功能
 * 
 * @author huangyi
 * @version 1.0
 * @since 2024
 */
@RestController
@RequestMapping("/housepage")
public class HousePageController {

    @Autowired
    private IHouseService houseServiceImpl;

    /**
     * C端查询房源详情
     */
    @GetMapping("/get/nologin")
    public R<HouseDataVO> houseDetail(Long houseId) {
        return R.ok(houseServiceImpl.houseDetail(houseId));
    }

}
